/* === v-modal === */

.v-modal__wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  &::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 0;
    vertical-align: middle;
  }
}

.v-modal {
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  background-color: @white;
  width: @modal-width;
  border-radius: @modal-border-radius;
  font-size: @modal-font-size;
  overflow: hidden;
  backface-visibility: hidden;
  &__header {
    position: relative;
    padding: 20px 20px 0;
  }

  &__headerbtn {
    position: absolute;
    top: 19px;
    right: 20px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;

    .v-modal__close {
      color: #999;
    }

    &:focus, &:hover {
      .v-modal__close {
        color: @color-primary;
      }
    }

  }

  &__content {
    padding: 30px 20px;
    color: @modal-content-color;
    font-size: @modal-content-font-size;
    position: relative;
  }

  &__input {
    padding-top: 15px;
    & input.invalid {
      border-color: @color-danger;
      &:focus {
        border-color: @color-danger;
      }
    }
  }

  &__errormsg {
    color: @color-danger;
    font-size: @modal-error-font-size;
    min-height: 18px;
    margin-top: 2px;
  }

  &__title {
    padding-left: 0;
    margin-bottom: 0;
    font-size: @modal-font-size;
    font-weight: bold;
    height: 18px;
    color: #333;
  }

  &__message {
    margin: 0;
    p {
      margin: 0;
      line-height: 1.4;
    }
  }

  &__btns {
    padding: 10px 20px 15px;
    text-align: right;
    button:nth-child(2) {
      margin-left: 10px;
    }
  }

  &__btns-reverse {
    flex-direction: row-reverse;
  }

  &__status {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px !important;

    &.v-icon-check {
      color: @modal-success-color;
    }

    &.v-icon-info {
      color: @modal-info-color;
    }

    &.v-icon-warning {
      color: @modal-warning-color;
    }

    &.v-icon-error {
      color: @modal-danger-color;
    }
  }
}


.v-modal-fade-enter-active {
  animation: modal-fade-in .3s;
}

.v-modal-fade-leave-active {
  animation: modal-fade-out .3s;
}

@keyframes modal-fade-in {
  0% {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes modal-fade-out {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
}
